package com.binarycube.webserver.config;


public class PageConfig {
	String name;
	String src;
	Visibility visibility;
	
	
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSource() {
		return src;
	}
	public void setSource(String src) {
		this.src = src;
	}
	
	public boolean isPublic() {
		return visibility == Visibility.PUBLIC;
	}
	
	public boolean isPrivate() {
		return visibility == Visibility.PRIVATE;
	}
	
	
	
	public void setVisibility(String visibility) {
		this.visibility = Visibility.valueOf(visibility.toUpperCase());
	}
	
	
}
